<p><a href="<?php echo $this->url(array('module' => 'default','controller'=>'manage', 'action' => 'add-account'), 'default', true); ?>" class="ui-state-default ui-corner-all linkButton">Add Account<span class="ui-icon ui-icon-plusthick"></span></a></p>
<table id="tableSorter" class="list tableSorter">
        <thead>
            <tr class="ui-widget-header">
                <th>Gmail Account</th>
                <th>Actions</th>
            </tr>
    </thead>
    <tbody>
	<?php foreach($this->accountList as $a) : ?>
    <tr>
        <td>
        	<a title="View Subcalendars" href="<?php echo $this->url(array('module' => 'default','controller'=>'manage', 'action' => 'subcalendar', 'gmailAcctId'=> $a['gmailAcctId']), 'default', true); ?>">
				<?php echo $a['gmailUsername']?>
			</a>
		</td>
        <td>
        	<a title="Edit Account" href="<?php echo $this->url(array('module' => 'default','controller'=>'manage', 'action' => 'edit-account', 'gmailAcctId'=> $a['gmailAcctId']), 'default', true); ?>" class="ui-state-default ui-corner-all linkButtonNoText"><span class="ui-icon ui-icon-pencil"></span></a>
        	<a title="Remove Account" href="<?php echo $this->url(array('module' => 'default','controller'=>'manage', 'action' => 'remove-account', 'gmailAcctId'=> $a['gmailAcctId']), 'default', true); ?>" class="ui-state-default ui-corner-all linkButtonNoText"><span class="ui-icon ui-icon-minus"></span></a>
        </td>
    </tr>
    <?php endforeach; ?>
</table>